var mail = "amrneggm.01@gmail.com";
var pass =123;
var lag =-71.170101;
var url ='192.168.137.127:8000/makan/default/call/xmlrpc';
var method = 'xAuth';
var params =[mail,pass];
alert(params);
xmlrpc(url,method,params,function(){

//alert("");
});
alert(this.responseText);
function xmlrpc(url, method, params,callback)
{
Titanium.API.info("xmlrpc: begin");
Titanium.API.info("xmlrpc: url: " + url);
Titanium.API.info("xmlrpc: method: " + method);

var xhr = Titanium.Network.createHTTPClient();
xhr.open("POST",url);
xhr.onload = callback;
var xml = '<methodCall>';
xml += '<methodName>'+method+'</methodName>';
xml += '<params>';
for (var k in params)
{
if (k)
{
var p = params[k];
Titanium.API.info("xmlrpc: p: "+p);
xml += '<param><string>'+p+'</string></param>';
}
}
xml += '</params></methodCall>';
Titanium.API.info("xmlrpc: xml: "+xml);
xhr.send(xml);
Titanium.API.info("xmlrpc: end");
}